package com.fast.admin.service.base;

import cn.hutool.core.util.RandomUtil;
import com.fast.admin.domain.constant.Constants;
import com.fast.framework.core.domain.User;
import org.springframework.stereotype.Service;

/**
 * 获取当前通用的全局的登陆对象数据做返回
 */
@Service("baseService")
public class BaseService {

    public User getLoginUserInfo() {
        User sysUser = new User();
        // sysUser.setUserId(RandomUtil.randomNumbers(Constants.LENGTH_10));
        sysUser.setUserId("Sdha4t4Ent");
        return sysUser;
    }

    public static void main(String[] args) {
        System.out.println(RandomUtil.randomString(Constants.LENGTH_10));
    }
}
